package com.ljm.boot.helloword.simpleStudy.springBoot.service;


import com.ljm.boot.helloword.simpleStudy.springBoot.annotation.Component;
import com.ljm.boot.helloword.simpleStudy.springBoot.interfaces.BeanPostProcessor;

@Component("throbBeanPostProcessor")
public class  ThrobBeanPostProcessor implements BeanPostProcessor {

    public Object BeanPostProcessorBeforeInitialization(Object bean, String beanName) {
        System.out.println("初始化前");
        return null;
    }

    public Object BeanPostProcessorAfterInitialization(Object bean, String beanName) {
        System.out.println("初始化后");
        return null;
    }
}
